
<%@ page import="mms.MedicineCompany" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'medicineCompany.label', default: 'MedicineCompany')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <g:form  action="list">
                <g:textField name="keyword" value="${keyword}" size="20" />
                <g:submitButton name="search" value="搜索" />
            </g:form>
        </div>
        <div class="body">
            <h1><g:message code="default.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="id" title="${message(code: 'medicineCompany.id.label', default: 'Id')}" />
                        
                            <g:sortableColumn property="name" title="${message(code: 'medicineCompany.name.label', default: 'Name')}" />
                        
                            <th><g:message code="medicineCompany.incorporator.label" default="Incorporator" /></th>
                        
                            <th><g:message code="medicineCompany.manager.label" default="manager" /></th>
                        
                            <g:sortableColumn property="contact" title="${message(code: 'medicineCompany.contact.label', default: 'contact')}" />
                        
                            <g:sortableColumn property="address" title="${message(code: 'medicineCompany.address.label', default: 'address')}" />
                             <th></th>

                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${medicineCompanyInstanceList}" status="i" var="medicineCompanyInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td>${fieldValue(bean: medicineCompanyInstance, field: "id")}</td>
                        
                            <td><g:link action="show" id="${medicineCompanyInstance.id}">${fieldValue(bean: medicineCompanyInstance, field: "name")}</g:link></td>
                        
                            <td>${fieldValue(bean: medicineCompanyInstance, field: "incorporator")}</td>
                        
                            <td>${fieldValue(bean: medicineCompanyInstance, field: "manager")}</td>
                        
                            <td>${fieldValue(bean: medicineCompanyInstance, field: "contact")}</td>
                        
                            <td>${fieldValue(bean: medicineCompanyInstance, field: "address")}</td>
                          
                            <td class="manager">
                                <g:link  action="edit" id="${medicineCompanyInstance.id}">编辑</g:link>
                                <g:link  action="editgis" id="${medicineCompanyInstance.id}">高级编辑</g:link>
                            </td>

                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${medicineCompanyInstanceTotal}" params="[keyword : keyword?.encodeAsURL()]"/>
            </div>
        </div>
    </body>
</html>
